home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr48
/
pasclern.zip
/
READDATA.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-04-01
|
433b
|
18 lines
PROGRAM read_real_data_from_a_file;
VAR hot_dog : TEXT;
index : BYTE;
line_number : INTEGER;
real1,real2,real3 : REAL;
BEGIN (* main program *)
ASSIGN(hot_dog,'REALDATA.TXT');
RESET(hot_dog);
FOR index := 1 TO 7 DO
BEGIN
READLN(hot_dog,line_number,real1,real2,real3);
WRITELN(line_number:7,real1:12:3,real2:12:3,real3:12:3);
END;
CLOSE(hot_dog);
END. (* of main program *)